const { Controller, prefix, url, method, perform } = require('../../lib/controller')


@prefix('/v2/user')
class User extends Controller {}


/**
 * @swagger
 * /v2/user/login:
 *   get:
 *     description: 用户信息
 *     tags:
 *      - Users
 *     parameters:
 *      - name: username
 *        in: query
 *        description: 用户名
 *        required: true
 *        type: string
 *        default: '138555555555'
 *     responses:
 *       200:
 *         description: users
 */
@url('/login')
@method('get')
class Index extends User {
  async handle () {
    this.success('v2 user test')
  }
}



module.exports = {
Index
}
